package com.xbongbong.pro.domain.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/3/1 19:37
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class UpdateDataEntity implements Serializable {

    private static final long serialVersionUID = -348053142743409132L;
    /**
     * 数据id
     */
    private Long id;

    /**
     * 公司id
     */
    private String corpid;

    /**
     * 更新时间
     */
    private Long updateTime;

    /**
     * 表单id
     */
    private Long formId;

    private String serialNo;

    private Integer del;

    private String ownerId;

    private String dataType;

    /**
     * 菜单id
     */
    private Long menuId;
    /**
     * 流程状态枚举值
     */
    private Integer flowStatus;

    private Integer stockType;

    /**
     * 更新数据 格式：[{"corpid": "", "id": "", "data":[{"key": "$.text_1", "esKey": "data.text_1", "value": ""}]}]
     */
    private List<UpdateDataValueEntity> data;
    /**
     * 父id
     */
    private Long parentId;

    /**
     * 子表单attr值
     */
    private String attr;
    /**
     * 所属部门id
     */
    private Long departmentId;

    /**
     * 表单设置共享/隔离model
     */
    private Integer model;

    public UpdateDataEntity() {
    }

    public UpdateDataEntity(Long id, String corpid, Integer flowStatus, List<UpdateDataValueEntity> data, Long updateTime) {
        this.id = id;
        this.corpid = corpid;
        this.flowStatus = flowStatus;
        this.data = data;
        this.updateTime = updateTime;
    }
}
